<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<jsp:include page="/public/public.jsp"/>
<script src="/GoThemeWeb/script/jquery-1.4.4.min.js" type="text/javascript"></script>

<script>
function showPnl(byval)
{
	document.getElementById('modifyPanel').style.display=byval;
}
function saveAction()
{
	$.ajax({
		   type: "POST",
		   url: "http://www.cnblogs.com/bestfc/archive/2009/06/08/1498742.html",
		   data: "name=John&location=Boston",
		   success: function(msg){
		     alert( "Data Saved: " + msg );
		     location.reload();
		   }
		});
}
</script>
</head>
<body>
<jsp:include page="/public/head.jsp"/>  
    <div class="wrapper clearfix">
    <jsp:include page="/public/left.jsp"/>  
	<div class="main">
<s:form name="usr" action="resourceSaveAction!save.action" namespace="/resource">
<table class="advert-tab" cellspacing="0">
<tr class="advert-th">
		<th colspan="6">
			添加/修改资源基本信息
		</th>
	</tr>
	<tr>	
		<td >资源名称</td>
		<td ><input type="text" name="resName" value="${resName }"/></td>
		<td >资源描述</td>
		<td ><input type="text" name="resDesc" value="${resDesc }"/></td>
		<!--  
		<td >资源类型</td>
		<td	>
			<select name="" >
				<option value=1>类型1</option>
				<option value=2>类型2</option>
				<option value=3>类型3</option>
				<option value=4>类型4</option>
				<option value=5>类型5</option>
			</select>
		</td>
		-->
	</tr>
	<tr>
		<td colspan=6>
		<input type="submit" class="add-advert" value="保存"/>
		<input type="reset" class="add-advert" value="重置"/>
		<input type="button" class="add-advert" onclick="location.reload();" value="刷新" />
		<input type="reset" class="add-advert" value="返回" onclick="location.href='/OpenAuthWebApplication/resource/resourceListAction!list.action'"/>
		<input type="hidden"  value="${resId }" name="resId"/>&nbsp;
		<input type="hidden" value="${oper }" name="oper"/>
		<!-- 
		<input type="button" class="add-advert" onclick="opendlg();" value="对话框" />
		 -->
	</td>
	</tr>
</table>
</s:form>
</div>
</div>
<%@ include file="/public/footer.jsp"%>
</body>
</html>